package com.yipei.business.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yipei.business.domain.MlOptionalSymbol;
import com.yipei.business.domain.MlPositionShare;

/**
 * 持仓股票Mapper接口
 * 
 * @author yipei
 * @date 2024-12-21
 */
public interface MlPositionShareMapper extends BaseMapper<MlPositionShare>
{
    /**
     * 查询持仓股票
     * 
     * @param id 持仓股票主键
     * @return 持仓股票
     */
    public MlPositionShare selectMlPositionShareById(Long id);

    /**
     * 查询持仓股票列表
     * 
     * @param mlPositionShare 持仓股票
     * @return 持仓股票集合
     */
    public List<MlPositionShare> selectMlPositionShareList(MlPositionShare mlPositionShare);

    /**
     * 新增持仓股票
     * 
     * @param mlPositionShare 持仓股票
     * @return 结果
     */
    public int insertMlPositionShare(MlPositionShare mlPositionShare);

    /**
     * 修改持仓股票
     * 
     * @param mlPositionShare 持仓股票
     * @return 结果
     */
    public int updateMlPositionShare(MlPositionShare mlPositionShare);

    /**
     * 删除持仓股票
     * 
     * @param id 持仓股票主键
     * @return 结果
     */
    public int deleteMlPositionShareById(Long id);

    /**
     * 批量删除持仓股票
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMlPositionShareByIds(Long[] ids);
}
